package com.DCapps.sendakiss;

import com.google.android.gcm.GCMRegistrar;

import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;

public class PreStartActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Intent i;

		if (checkRegistered())
			i = new Intent(this, MainActivity.class);
		else
			i = new Intent(this, RegisterActivity.class);

		this.startActivity(i);
		super.onCreate(savedInstanceState);
	}

	private boolean checkRegistered() {
		return GCMRegistrar.isRegisteredOnServer(this);
	}

}
